﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="EditStaff.aspx.cs" Inherits="TimeWork.EditStaff" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Bredcrumb_child" ContentPlaceHolderID="Bredcrumb" runat="server">
    <li><a href="#" class="report">Quản trị</a></li>>
    <li><a href="ListStaff.aspx">Quản lý người dùng</a></li>>
    <li><a href="#">Thông tin cá nhân</a></li>
</asp:Content>
<asp:Content ID="MainContent_child" ContentPlaceHolderID="MainContent" runat="server">
    <form id="FormChangeProfile" runat="server">
    <asp:Panel ID="pnlChangeProfile" runat="server">    
    <asp:ToolkitScriptManager ID="ToolkitScriptManager" runat="server">
    </asp:ToolkitScriptManager>
    <div class="info-box" style="width: 400px;margin:0 auto;">
        <h3>Thông tin cá nhân</h3>
        <asp:Panel ID="pnlNotice" runat="server">
            <asp:Image ID="imgNotice" runat="server"/><asp:Label ID="lblNotice" runat="server"></asp:Label>
        </asp:Panel>
        <table  style="width: 368px;">
            <tr>
                <td colspan="2"><i>Các trường có dấu * là bắt buộc</i></td>
            </tr>
            <tr>
                <td>Email:</td>
                <td><asp:Label ID="lblEmail" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td>Họ tên*:</td>
                <td><asp:TextBox ID="txtName" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Phòng ban*:</td>
                <td>
                    <asp:DropDownList ID="ddlResultUnit" runat="server" Width="195px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Ngày sinh:</td>
                <td>
                    <asp:TextBox ID="txtBirthday" runat="server"></asp:TextBox>&nbsp;<asp:Image ID="imgDate"
                        runat="server" ImageUrl="~/resources/img/icons/calendar.png" />&nbsp;
                    <asp:CalendarExtender ID="CalendarExtender" runat="server" 
                        PopupPosition="BottomLeft" PopupButtonID="imgDate" 
                        TargetControlID="txtBirthday" Format="dd/MM/yyyy">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td>Giới tính*:</td>
                <td>
                    <asp:DropDownList ID="ddlGender" runat="server">
                        <asp:ListItem Text="Nam" Value="True"></asp:ListItem>
                        <asp:ListItem Text="Nữ" Value="False"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Số đt:</td>
                <td><asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Địa chỉ hiện tại:</td>
                <td><asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Chức vụ:</td>
                <td><asp:TextBox ID="txtPosition" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Ngạch/Bậc:</td>
                <td><asp:TextBox ID="txtScale" runat="server" Width="100px"></asp:TextBox> / 
                    <asp:TextBox ID="txtLevel" runat="server" Width="50px"></asp:TextBox></td>
            </tr>
            <tr>
                <td>Quyền hạn*:</td>
                <td>
                    <asp:DropDownList ID="ddlPermission" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <asp:Button ID="btnChangePass" runat="server" Text="Thay đổi mật khẩu" 
                        CssClass="mybutton" onclick="btnChangePass_Click" />&nbsp;<asp:Button 
                        ID="btnUpdate" runat="server" Text="Cập nhật" CssClass="mybutton color-yellow" 
                        onclick="btnUpdate_Click" />
                </td>
            </tr>
        </table>
    </div>
    </asp:Panel>
    <asp:Label ID="lblError" runat="server" CssClass="validate"></asp:Label>
    </form> 
</asp:Content>